package net.colah.k1.core;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaAbstractEntity;

/**
 * Created by sinclair on 4/27/14.
 */
@Entity
@Table(name = "BO_CUSTOMER")
public class Customer extends KoalaAbstractEntity {
	/**
	 * 
	 */
<<<<<<< HEAD
	private static final long serialVersionUID = -3933695118574988283L;

	private String name;
	private String code;
	private String tel;
	private String mobile;
	private String fax;

	private String address;
	private String email;
	private String site;

	private String contact;

	private String meno;

	public enum Type {
		PI_FA, // 批发
		LING_SHOU, // 零售
		PEI_DAO; // 配套
		
		private String name;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	private Type type;

	@Column(name = "NAME", length = 128, nullable = false)
=======
	private static final long serialVersionUID = 1L;
	private String name;
	private String code;
	private String tel;
	private String fax ;
	private String mobile;

	private String address;
	private String email;

	private String contact;

	@Override
	public String[] businessKeys() {
		return new String[0];
	}
	
	

	@Column(name="FAX",length=128,nullable=true)
	public String getFax() {
		return fax;
	}



	public void setFax(String fax) {
		this.fax = fax;
	}



	@Column(name="NAME",length=128,nullable=false)
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

<<<<<<< HEAD
	@Column(name = "CODE", length = 64, nullable = true)
=======
	@Column(name="CODE",length=64,nullable=true)
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

<<<<<<< HEAD
	@Column(name = "TEL", length = 128, nullable = true)
=======
	@Column(name="TEL",length=256,nullable=true)
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public String getTel() {
		return tel;
	}

<<<<<<< HEAD
	@Column(name = "FAX", length = 36, nullable = true)
	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

=======
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public void setTel(String tel) {
		this.tel = tel;
	}

<<<<<<< HEAD
	@Column(name = "MOBILE", length = 128, nullable = true)
=======
	@Column(name="MOBILE",length=256,nullable=true)
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

<<<<<<< HEAD
	@Column(name = "ADDRESS", length = 256, nullable = true)
=======
	@Column(name="ADDRESS",length=256,nullable=true)
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

<<<<<<< HEAD
	@Column(name = "EMAIL", length = 64, nullable = true)
=======
	@Column(name="EMAIL",length=64,nullable=true)
>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
<<<<<<< HEAD

	@Column(name = "SITE", length = 64, nullable = true)
	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	@Column(name = "CONTACT", length = 48, nullable = true)
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "MENO", length = 128, nullable = true)
	public String getMeno() {
		return meno;
	}

	public void setMeno(String meno) {
		this.meno = meno;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	@Override
	public String[] businessKeys() {
		return new String[0];
	}
=======

	@Column(name="CONTRACT",length=128,nullable=true)
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

>>>>>>> 70bc15e7756cfc63eac0399116f31d431c4c4085
}
